# Contributor: Peter Shkenev <santurysim@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=xfe
pkgver=1.45
pkgrel=0
pkgdesc="MS-Explorer or Commander like file manager for X"
url="http://roland65.free.fr/xfe/index.php?page=home"
arch="all"
license="GPL-2.0-only"
makedepends="
	fox-dev
	libx11-dev
	freetype-dev
	libxft-dev
	xcb-util-dev
	gettext-dev
	intltool
	"
subpackages="$pkgname-doc $pkgname-lang $pkgname-xfi $pkgname-xfp $pkgname-xfw"
source="
	https://downloads.sourceforge.net/xfe/xfe-$pkgver.tar.xz
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

xfi() {
	pkgdesc="$pkgdesc (image viewer)"
	amove usr/bin/xfi
}

xfp() {
	pkgdesc="$pkgdesc (DEB/RPM package viewer)"
	amove usr/bin/xfp
}

xfw() {
	pkgdesc="$pkgdesc (text editor)"
	amove usr/bin/xfw
}

sha512sums="
3d511fec3070b39c08b83c19178890dea6f7a306dee0c51a98b6ed8eafc5148973da6d803beb2053be131d389dd74eef829459fe39e212f53b983b19d5d1cb4f  xfe-1.45.tar.xz
"
